From: Florian Müllner Date: Thu, 16 Apr 2020 22:49:24 +0000 (+0200) Subject: windowManager: Fix ngettext() call X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~485 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5ec5978d4ab75bbf7e01ce3e6b0968db0a486a6e;p=gnome-shell.git windowManager: Fix ngettext() call We don't pass the number that allows gettext to decide on the correct string, whoops. Spotted by Alexandre Franke. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2649 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 21c63b5c3..ffbec6d83 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -82,8 +82,10 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog { } _formatCountDown() { - let fmt = ngettext("Settings changes will revert in %d second", - "Settings changes will revert in %d seconds"); + const fmt = ngettext( + 'Settings changes will revert in %d second', + 'Settings changes will revert in %d seconds', + this._countDown); return fmt.format(this._countDown); }